<?php

namespace App\Http\Controllers\api;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class UrlController extends Controller
{
    public function showUrl()
    {
        //url助手函数生成路径
        $id = 1;
        //return url("post/{$id}");
        //route助手函数生成路径
//        return route('zm');
        //action函数生成路径
        return action('UrlController@showUrl');
    }
}
